<template>
  <div>
    <el-card shadow="hover" class="department" >
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="俯卧位通气治疗记录单(一)" name="first">
          <PronePositionVentilationOne :settings.sync="data"></PronePositionVentilationOne>
        </el-tab-pane>
        <el-tab-pane label="俯卧位通气治疗记录单(二)" name="second">
          <PronePositionVentilationTwo :settings="data" />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>
<script>
import { printExcel } from "@/utils/config"; // 导入模块
import PronePositionVentilationOne from "../nursingDocument/pronePositionVentilationOne";
import PronePositionVentilationTwo from "../nursingDocument/pronePositionVentilationTwo";
import {} from "@/api/table";
import { Message } from "element-ui";

export default {
  components: {
    PronePositionVentilationOne,
    PronePositionVentilationTwo,
  },
  data() {
    return {
      data: {},
      activeName: "first",
      firstUpdate: true,
      secondUpdate: false,
    };
  },
  computed: {
    getData() {
      return this.$store.state.user.severFall;
    },
  },
  watch: {
    getData() {
      this.data = this.$store.state.user.severFall;
    },
  },
  mounted() {
  },
  methods: {
    handleClick(tabName) {
      return;
      if (this.activeName == "first") {
        this.firstUpdate = true;
        this.secondUpdate = false;
      } else if (this.activeName == "second") {
        this.firstUpdate = false;
        this.secondUpdate = true;
      }
    },
  }
};
</script>

<style>
.customer-table {
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
}
.customer-table td,
.customer-table th.is-leaf,
.customer-table thead.is-group th {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}
.customer-table .el-table__empty-block {
  border-right: 1px solid #000;
}
.tianwai {
  margin-right: 20px;
}
.feixian {
  margin-right: 35px;
}
</style>
<style lang="scss" scoped>
::v-deep body .el-table th.gutter {
  display: table-cell !important;
}
::v-deep .el-table td,
.el-table th {
  padding: 0 !important;
}
::v-deep .el-table td {
  height: 28px !important;
  line-height: 28px !important;
}
::v-deep .el-input__inner {
  padding: 0 !important;
  height: 28px !important;
}
::v-deep .el-table .cell {
  padding: 0 !important;
}
::v-deep .el-input--suffix .el-input__inner {
  padding-left: 0 !important;
}
::v-deep .el-input--prefix .el-input__inner {
  padding-left: 0 !important;
}
::v-deep .el-input__prefix i {
  opacity: -1 !important;
}
::v-deep .el-input__suffix-inner i {
  opacity: -1 !important;
}
.tianzhao {
  background-color: #19be6b;
}
.dataInputer {
  width: 120px !important;
}
.model {
  width: 98%;
  height: auto;
  margin: 0 auto;
  margin-top: 20px;
}
.department {
  width: 99%;
  height: 5000px;
  margin: 0 auto;
  margin-bottom: 10px;
  height: auto;
}

.block {
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  position: absolute;
  top: 46px;
  right: 13%;
}
#refrsh {
  position: absolute;
  top: 52px;
  right: 11%;
}

.newadd {
  position: absolute;
  top: 40px;
  right: 3%;
  height: 40px;
  color: #fff;
  line-height: 15px;
  text-align: center;
  font-size: 15px;
  border-radius: 5px;
  display: inline-block;
  background: #19be6b;
}
.newaddPrint {
  position: absolute;
  top: 72px;
  right: 3%;
  height: 40px;
  color: #fff;
  line-height: 15px;
  text-align: center;
  font-size: 15px;
  border-radius: 5px;
  display: inline-block;
  background: #19be6b;
}
.newaddnew {
  position: absolute;
  top: 40px;
  right: 10%;
  height: 40px;
  color: #fff;
  line-height: 15px;
  text-align: center;
  font-size: 15px;
  border-radius: 5px;
  display: inline-block;
  background: #19be6b;
}
.modelBox {
  height: 175px;
  width: 90%;
  margin: 25px 0px 15px 40px;
}
#modelItem {
  width: 118px;
  height: 77px;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #dcdee2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

#modelItem span {
  margin: 0 auto;
  display: inline-block;
  width: 110px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}

#text {
  font-weight: 500;
}
#textn {
  font-size: 14px;
  font-weight: normal;
  color: #6a6b6d;
}
.isActive {
  // border-color: rgb(45, 140, 240);
  box-shadow: rgb(92, 173, 255) 0px 0px 3px;
  background-color: rgb(45, 140, 240);
  // color: #fff;
}
.s1 {
  color: #fff;
}
.s2 {
  color: #fff;
}

.jiansuo-box {
  width: 94%;
  margin: auto;
  background: aliceblue;
  height: 80px;
  border-radius: 5px;
  border: 1px solid #dcdee2;
  text-align: center;
  line-height: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.kaiguan {
  display: inline-block;
  margin-left: 5px;
}

.kuangBox {
  display: inline;
  margin-right: 9%;
}
.span_top {
  position: relative;
  font-size: 15px;
  line-height: 50px;
}
.bed {
  width: 200px;
  position: relative;
  left: 0%;
}
.mod_box {
  margin-top: -60px;
  width: 2150px;
  margin-left: 15%;
}
.morsePrint {
  height: 40px;
  border-bottom: 1px solid #e8eaec;
}
.morseText {
  float: left;
  color: #303133;
  margin-top: 8px;
}

@media screen and (min-width: 1200px) and (max-width: 1365px) {
  .mod_box {
    width: 2150px;
    margin-left: -35%;
  }
  .block {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    position: absolute;
    top: 46px;
    right: 19%;
  }
  #refrsh {
    position: absolute;
    top: 52px;
    right: 16%;
  }

  .newadd {
    position: absolute;
    top: 40px;
    right: 4%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }

  .newaddPrint {
    position: absolute;
    top: 72px;
    right: 4%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }
  .kuangBox {
    display: inline;
    margin-right: 4%;
  }
  .bed {
    width: 42%;
    position: relative;
    left: 0%;
  }
}
@media screen and (min-width: 1366px) and (max-width: 1600px) {
  .mod_box {
    width: 2150px;
    margin-left: -21%;
  }
  .block {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    position: absolute;
    top: 46px;
    right: 18%;
  }
  #refrsh {
    position: absolute;
    top: 52px;
    right: 15%;
  }

  .newadd {
    position: absolute;
    top: 40px;
    right: 4%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }

  .newaddPrint {
    position: absolute;
    top: 72px;
    right: 4%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }
}
@media screen and (min-width: 1800px) {
  .mod_box {
    width: 2150px;
    margin-left: -7%;
  }
  .block {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    position: absolute;
    top: 46px;
    right: 13%;
  }
  #refrsh {
    position: absolute;
    top: 52px;
    right: 11%;
  }

  .newadd {
    position: absolute;
    top: 40px;
    right: 3%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }
  .newaddPrint {
    position: absolute;
    top: 72px;
    right: 3%;
    height: 40px;
    color: #fff;
    line-height: 15px;
    text-align: center;
    font-size: 15px;
    border-radius: 5px;
    display: inline-block;
    background: #19be6b;
  }
}
</style>
